package com.yfp.operation.domain.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.yfp.common.core.text.BigDecimalSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 券包销售数据查询结果
 */
@Data
public class UserLayerMachineVO {

    /**
     * 设备名称
     */
    @Schema(description = "设备名称")
    private String machineName;

    /**
     * 设备编号
     */
    @Schema(description = "设备编号")
    private String machineSn;

    /**
     * 累计用户数
     */
    @Schema(description = "累计用户数")
    private Integer totalUser;

    /**
     * 下单用户数
     */
    @Schema(description = "下单用户数")
    private Integer orderUser;

    /**
     * 新用户数
     */
    @Schema(description = "新用户数")
    private Integer newUser;

    /**
     * 新用户环比
     */
    @JsonSerialize(using = BigDecimalSerializer.class)
    @Schema(description = "新用户环比")
    private BigDecimal newUserSequentialGrowth;

    /**
     * 新用户占比
     */
    @JsonSerialize(using = BigDecimalSerializer.class)
    @Schema(description = "新用户占比")
    private BigDecimal newUserRatio;

    /**
     * 复购率
     */
    @JsonSerialize(using = BigDecimalSerializer.class)
    @Schema(description = "复购率")
    private BigDecimal repurchaseRate;
}
